home *** CD-ROM | disk | FTP | other *** search
/ Champak 123 / (Vol 123) Jan 13 2011.iso / Games / island_fishing.swf / scripts / frame_223 / PlaceObject2_69_9 / CLIPACTIONRECORD onClipEvent(enterFrame).as
Text File  |  2011-01-13  |  2KB  |  58 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.f1.hooked <= 0)
  3.    {
  4.       if(_root.f2.hooked <= 0)
  5.       {
  6.          if(_root.f3.hooked <= 0)
  7.          {
  8.             if(_root.f4.hooked <= 0)
  9.             {
  10.                if(_root.f4.hooked <= 0)
  11.                {
  12.                   if(_root.f5.hooked <= 0)
  13.                   {
  14.                      if(_root.f6.hooked <= 0)
  15.                      {
  16.                         if(_root.f7.hooked <= 0)
  17.                         {
  18.                            if(_root.f8.hooked <= 0)
  19.                            {
  20.                               if(_root.f9.hooked <= 0)
  21.                               {
  22.                                  if(_root.f10.hooked <= 0)
  23.                                  {
  24.                                     if(_root.fish < _root.fishtotal)
  25.                                     {
  26.                                        minY = 175;
  27.                                        myRadians = Math.atan2(_root._ymouse - this._y,_root._xmouse - this._x);
  28.                                        myDegrees = Math.round(myRadians * 180 / 3.141592653589793);
  29.                                        _root.yChange = Math.round(_root._ymouse - this._y);
  30.                                        _root.xChange = Math.round(_root._xmouse - this._x);
  31.                                        _root.yMove = Math.round(_root.yChange / 50);
  32.                                        _root.xMove = Math.round(_root.xChange / 50);
  33.                                        if(this._y > minY)
  34.                                        {
  35.                                           _root.reelable = 1;
  36.                                           this._y += _root.yMove;
  37.                                        }
  38.                                        else
  39.                                        {
  40.                                           _root.reelable = 0;
  41.                                           _root.guy.hand.gotoAndStop(1);
  42.                                           this._y += 5;
  43.                                        }
  44.                                        this._x += _root.xMove;
  45.                                     }
  46.                                  }
  47.                               }
  48.                            }
  49.                         }
  50.                      }
  51.                   }
  52.                }
  53.             }
  54.          }
  55.       }
  56.    }
  57. }
  58.